<?php
/**
* Html类
* @author cxmcook
*/
// $a = new HelperHtml();
$b='www_aqq';

echo date("Y-m-d H:i:s", 1445270400);


class HelperHtml
{
	public function __construct(){
		//return parent::__construct();
		/** test here **/
		$href = HelperHtml::anchor('/url.html', '目标网址', array('class'=>'txt','title'=>'www'));
		echo "   ... ";
		echo ($href);

	}

	/**
	* 生成链接
	* eg. HelperHtml::anchor('/url.html', '目标网址', array('class'=>'txt'))
	* 
	*/
	public static function anchor($href = '#', $title, $options=array()){
		$html = "<a href='".$href."'";
		if($options){
			foreach ($options as $key => $value) {
				$html .= " ".$key."='".$value."' ";
			}
		}
		$html .= ">". $title . "</a>";
		return $html;
	}
}